package net.m2technologies.open_arm.transport.transaction.messaging;

import java.util.Properties;

/**
 * Copyright 2005 Mark Masterson<br> <br> Licensed under the Apache License, Version 2.0 (the "License");<br> you may
 * not use this file except in compliance with the License.<br> You may obtain a copy of the License at<br> <br>
 * http://www.apache.org/licenses/LICENSE-2.0<br> <br> Unless required by applicable law or agreed to in writing,
 * software<br> distributed under the License is distributed on an "AS IS" BASIS,<br> WITHOUT WARRANTIES OR CONDITIONS
 * OF ANY KIND, either express or implied.<br> See the License for the specific language governing permissions and<br>
 * limitations under the License.<br>
 * <p/>
 * <p>Description: </p>
 *
 * @author Mark Masterson
 * @version 0.010
 */
public class MessagingMediatorConfiguration {

    private final String queueConnectionFactoryName;
    private final long transactionLengthInterval;
    private final long updateLengthInterval;
    private final boolean isBlockedEventTrap;
    private final String queueName;
    private final Properties jndiInitialContextProperties;

    public MessagingMediatorConfiguration(final String queueConnectionFactoryName,
                                          final long transactionLengthInterval,
                                          final long updateLengthInterval,
                                          final boolean blockedEventTrap,
                                          final String queueName,
                                          final Properties jndiInitialContextProperties) {
        this.queueConnectionFactoryName = queueConnectionFactoryName;
        this.transactionLengthInterval = transactionLengthInterval;
        this.updateLengthInterval = updateLengthInterval;
        isBlockedEventTrap = blockedEventTrap;
        this.queueName = queueName;
        this.jndiInitialContextProperties = jndiInitialContextProperties;
    }

    public String getQueueConnectionFactoryName() {
        return queueConnectionFactoryName;
    }

    public long getTransactionLengthInterval() {
        return transactionLengthInterval;
    }

    public long getUpdateLengthInterval() {
        return updateLengthInterval;
    }

    public boolean isBlockedEventTrap() {
        return isBlockedEventTrap;
    }

    public String getQueueName() {
        return queueName;
    }

    public Properties getJndiInitialContextProperties() {
        return jndiInitialContextProperties;
    }

}
